<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Leon</title>
</head>

<body>
  <button id="btn">点击</button>
</body>

</html>
<script src="./lib/js/jquery.min.js"></script>
<script src="./lib/layer/layer.js"></script>
<script>
  $('#btn').click(()=>{
    // layer.msg('hello',{
    //     icon: 4,
    //     time:1000
    // },()=>{
    //     console.log(666)
    // }); 


//    let index = layer.load(2)
//    setTimeout(() => {
//     layer.close(index); 
//    }, 2000);

layer.load(0,{time:2000,shade:[0.3, '#009688']});

  })
</script>